import request from "@/utils/request";

export function getItemByReceiveDate(data) {
  return request({
    url: "/check/item/getItemByReceiveDate",
    method: "post",
    data: data,
  });
}

export function getItemListBySampleDecWay1(query) {
  return request({
    url: "/check/item/getItemListBySampleDecWay1",
    method: "get",
    params: query,
  });
}

export function getItemListBySampleDecWay2(query) {
  return request({
    url: "/check/item/getItemListBySampleDecWay2",
    method: "get",
    params: query,
  });
}


// 分享
export function shareItems(data) {
  return request({
    url: "/check/item/shareItems",
    method: "put",
    data: data,
  });
}

export function getReceiveItemDateList(data) {
  return request({
    url: "/check/item/getReceiveItemDateList",
    method: "post",
    data: data,
  });
}

//获取所有字段集合
export function getAllList(data) {
  return request({
    url: "/system/pagefielduser/getAllList",
    method: "post",
    data: data,
  });
}

//字段隐藏的功能
export function getPagefielduserSava(data) {
  return request({
    url: "/system/pagefielduser/save",
    method: "post",
    data: data,
  });
}


// 修改项目主数据
export function updateItem(data) {
  return request({
    url: '/check/item',
    method: 'put',
    data: data
  })
}


// 修改样本主数据
export function updateSample(data) {
  return request({
    url: '/check/sample',
    method: 'put',
    data: data
  })
}

